package com.wgl.yygh.serivce;

import com.wgl.model.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;
import com.wgl.model.hosp.Department;
import com.wgl.model.hosp.Hospital;
import com.wgl.model.vo.hosp.DepartmentQueryVo;

import java.util.List;
import java.util.Map;

/**
 * @author wgl
 * @version 1.0.0
 * @ClassName HospitalSerive.java
 * @Description 科室
 * @createTime 2022年02月05日 21:43:00
 */
public interface DepartmentService {
    /**
    * @Author: Wgl
    * @Description: 上传科室
    * @Date: 2022/2/6 14:19;
    * @param map: ;
    * @return: void;
    */
    void save(Map<String, Object> map);

    /**
    * @Author: Wgl
    * @Description: 查询科室接口
    * @Date: 2022/2/6 15:04;
    * @param page:
     * @param limit:
     * @param departmentQueryVo: ;
    * @return: com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.wgl.model.hosp.Department>;
    */
    Page<Department> findPageDepartment(Integer page, Integer limit, DepartmentQueryVo departmentQueryVo);
    /**
    * @Author: Wgl
    * @Description: 删除科室接口
    * @Date: 2022/2/6 15:21;
    * @param hospcode:
     * @param depcode: ;
    * @return: void;
    */
    void remove(String hospcode, String depcode);
    /**
    * @Author: Wgl
    * @Description: 查询所有科室
    * @Date: 2022/2/7 22:10;
    * @param hoscode: ;
    * @return: java.util.List<com.wgl.model.vo.hosp.DepartmentVo>;
    */
    List<DepartmentVo> findeDeptTree(String hoscode);
    /**
    * @Author: Wgl
    * @Description: 查询科室名称
    * @Date: 2022/2/8 21:08;
    * @param hoscode:
    * @param depcode:
    * @return: java.lang.String;
    */
    String getDepName(String  hoscode,String depcode);

    /**
    * @Author: Wgl
    * @Description: 根据医院编号和医院名称得到科室
    * @Date: 2022/2/13 16:07;
    * @param hoscode:
     * @param depcode: ;
    * @return: com.wgl.model.hosp.Department;
    */
    Department getDepartment(String hoscode, String depcode);
//
//    Hospital getByHoscode(String hospcode);
}
